]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: Set correct unfullscreen gesture enabled state on startup
authorSebastian Keller <skeller@gnome.org>
Thu, 6 Jan 2022 03:53:23 +0000 (04:53 +0100)
committerSebastian Keller <skeller@gnome.org>
Thu, 6 Jan 2022 03:53:23 +0000 (04:53 +0100)
The unfullscreen gesture was defaulting to enabled until the first
window focus change. With it now being run in the capture phase, the
gesture was preventing clicks in the top panel except on the activities
button before the first window was opened.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2087>

js/ui/windowManager.js

index 784f7939350cc1e5974386b41850816a1c2aaea0..d3bb155720ee8bad17b9598a67fd5cb921500222 100644 (file)
@@ -954,6 +954,7 @@ var WindowManager = class {
 
         global.display.connect('notify::focus-window', updateUnfullscreenGesture);
         global.display.connect('in-fullscreen-changed', updateUnfullscreenGesture);
+        updateUnfullscreenGesture();
 
         global.stage.add_action_full('unfullscreen', Clutter.EventPhase.CAPTURE, topDragAction);